﻿using System.Web.Services;
using CookComputing.XmlRpc;

namespace WebService1
{
    public partial class Service1 : XmlRpcService, IStateName
    {
        public Service1()
        {
            InitializeComponent();
        }

        private static void InitializeComponent() {}

        [WebMethod]
        public string GetStateName(int stateNumber)
        {
            if (stateNumber == 41)
                return "South Dakota";
            return "Don't know";
        }

        [WebMethod]
        public int Add(int x, int y)
        {
            return x + y;
        }
    }
}
